<?php

ini_set('display_errors', 1);
error_reporting(-1);
require_once '/data/wwwroot/g_vendor/autoload.php';

use Biz\model\GoodsBasicInfo as mGoodsBasicInfo;


$goods_id = 0;

$goodsInfo = mGoodsBasicInfo::get("*", [
	'goods_id[>]' => $goods_id,
	'ORDER' => [
		'goods_id' => 'ASC'
	]
]);


while ($goodsInfo) {



	$info = \Biz\service\Stock::setStockCache($goodsInfo['goods_id']);


	var_dump($info);

	$goods_id = $goodsInfo['goods_id'];

	$goodsInfo = mGoodsBasicInfo::get("*", [
		'goods_id[>]' => $goods_id,
		'ORDER' => [
			'goods_id' => 'ASC'
		]
	]);
}




